/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ntb.models;

import com.ntb.entities.Locations;
import java.util.Iterator;
import java.util.List;

/**
 *
 * @author AnhTuan
 */
public interface LocationsDAO {

    public Iterator<Locations> getList();
    
    public Iterator<Locations> getList(String locationName, int page);

    public int getPageCount(String locationName);

    public List<String[]> getCostHistory(int locationID, String year);
    
    public List getCostHistoryYear(int locationID);

    public Locations getRow(int id);

    public boolean checkDuplicateName(String name);

    public int add(Locations object);

    public int update(Locations object);

    public int delete(int id);
}
